The answer is no, because the Delete folder must use the RD command, which is called the ^_^ specializing in the operation.
Another alternative to Rd is RmDir, which comes from remakedirectory. The method used is also simple: Rd folder name, for
1.3 Learning MD Rd ren move command
Learning points:1. Create folder: MD2. Delete folder: Rd3. Renaming files (clips): ren4. Moving files (folders): Move
I. Creating a folder: MD
The MD command is used to create a folder, and the path in the
DEL and RD commands Delete special files and folders
In Windows, sometimes some special folders or files cannot be deleted, especially files with system reserved characters, such as (con. bat ). You can do this as follows:
Right-click the
Implementation code:
Copy Code code as follows:
@echo off
for/f "tokens=*"%%a in (' dir/b/ad/s "destination folder" ^|SORT/R ") do rd"%%a "2>nul
Pause
Goto:eof
@echo off
for/f "delims="%%i in (' dir/ad/b/s ') do
Implementation
Code :
Copy code The Code is as follows: @ echo off
For/F "tokens = *" % A in ('dir/B/AD/s "target folder" ^ | sort/R ') do RD "% a" 2> NUL
Pause
Goto: EOF
@ Echo off
For/F "delims =" % I in ('dir/AD/B/s') Do call: rd_dir_empty "%
Normally, the browser caches the page. In this case, you can access the page just after exiting. For example, you can access the page just cached after exiting, in some cases, this is not safe enough. The solution to the problem is as
In Win9x's time, this was a problem to be solved with the deltree external command, but since Windows 2000 and Windows XP canceled this command (which is really weird), how do you solve it now? You may think of using DEL+RD to solve this problem.
1. There was a situation where files could not be deleted when the files were purged todayUse the following simple methods:
The code is as follows
Copy Code
del/f/a/q\\?\%1RD/S/q\\?\%1
Save the above code in a
Win7 System empty folder can not be deleted how to do
Reason Analysis:
Folders that have programs in use, lack of permissions, corrupted folder data, and so on can cause the empty folder to be deleted normally.
The workaround is as
The answer is no, because the Delete folder must use the RD command, which is called the ^_^ specializing in the operation.
Another alternative to Rd is RmDir, which comes from remakedirectory. The method used is also simple: Rd folder name, for
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.